package com.chery.media.library.extend.livedata

import androidx.lifecycle.MutableLiveData


/**
 * @author MoYe_PanDeng
 * @ClassName:
 * @Description:自定义的Boolean类型 MutableLiveData 提供了默认值，避免取值的时候还要判空
 * @date: 2021/4/10
 */
class BooleanLiveData : MutableLiveData<Boolean>() {

    override fun getValue(): Boolean {
        return super.getValue() ?: false
    }
}

